<template>
  <div class="common-layout">
    <el-container>
      <el-aside :width="$store.state.isCollapse ? '180px' : '64px'">
        <common-aside />
      </el-aside>
      <el-container>
        <el-header>
          <common-header />
        </el-header>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { defineComponent } from "vue";
import CommonHeader from "../components/CommonHeader.vue";
import CommonAside from "../components/CommonAside.vue";
export default defineComponent({
  components: { CommonHeader, CommonAside },
  setup() {
    return {};
  },
});
</script>

<style>
.el-header {
  padding: 0;
}
.el-menu {
  height: 100vh;
  width: 200px;
}
</style>